package com.yz.jdd.network.response;


import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.widget.TextView;


import java.util.List;

/**
 * Created by shibin on 2017/1/17.
 * 支付结果返回数据bean
 */

public class Response_Pay implements Parcelable {
    private String memberCardAmount;
    private String memberCardId;//会员卡号
    private String operatorId;
    private String operatorName;
    private String orderId;
    private String orderStatus;//订单状态 ,20:订单异常
    private String orderType;//订单类型:1:交易订单 2:储值订单;
    private String payStatus;//支付状态 0：未付款，1：付款中，2：付款成功，3：付款失败
    private String payTime;//交易时间
    private String payType;//支付方式(1:现金 2:支付宝 3:会员卡 4:银联,5:微信)
    private String qrCode;//支付宝&微信 扫码支付二维码
    private String subPayType;//1,扫码;2,收款码;
    private String thirdOrderId;//第三方订单号
    private String thirdTradeNo;//第三方流水号

    private String tradeNo;//交易流水号

    private String voucherId;//优惠券ID
    private String voucherName;//优惠券名称
    private String inputPayPwdNum;//支付密码锁定前剩余输入次数（当错误码为2005时返回该字段）
    private String activityQrCode;//活动广告位数据
    private String goodsAmount;//商品总额
    private String qrCodeExpired;//被扫失效时间

    private String totalAmount;//订单总金额（应收金额）
    private String receiptAmount;//实收金额


    //营销新增
    private String receiveAmountFromPayGate;//收银实收
    private String deductionAmount;//津贴
    private String discountAmount;//优惠金额


    public String getOrderTypeDesc() {
        return orderTypeDesc;
    }

    public void setOrderTypeDesc(String orderTypeDesc) {
        this.orderTypeDesc = orderTypeDesc;
    }

    public String getPayStatusDesc() {
        return payStatusDesc;
    }

    public void setPayStatusDesc(String payStatusDesc) {
        this.payStatusDesc = payStatusDesc;
    }

    /**
     * 订单类型描述
     */
    private String orderTypeDesc;
    /**
     * 订单状态描述
     */
    private String payStatusDesc;



    public String getReceiveAmountFromPayGate() {
        return receiveAmountFromPayGate;
    }

    public void setReceiveAmountFromPayGate(String receiveAmountFromPayGate) {
        this.receiveAmountFromPayGate = receiveAmountFromPayGate;
    }

    public String getDeductionAmount() {
        return deductionAmount;
    }

    public void setDeductionAmount(String deductionAmount) {
        this.deductionAmount = deductionAmount;
    }

    public String getDiscountAmount() {
        return discountAmount;
    }

    private String refundMoney;
    private String refundReason;

    private String shiShou;
    private String  orderYingshou;

    public String getQrCodeExpired() {
        return qrCodeExpired;
    }

    public void setQrCodeExpired(String qrCodeExpired) {
        this.qrCodeExpired = qrCodeExpired;
    }

    public String getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(String refundMoney) {
        this.refundMoney = refundMoney;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public String getShiShou() {
        return shiShou;
    }

    public void setShiShou(String shiShou) {
        this.shiShou = shiShou;
    }

    public String getOrderYingshou() {
        return orderYingshou;
    }

    public void setOrderYingshou(String orderYingshou) {
        this.orderYingshou = orderYingshou;
    }



    private String memberMobile;//会员卡号  打印小票用这个字段

    public String getGooodsAmount() {
        return gooodsAmount;
    }

    private String gooodsAmount;//商品核销金额

    public String getMemberMobile() {
        return memberMobile;
    }

    protected Response_Pay(Parcel in) {
        memberCardAmount = in.readString();
        memberCardId = in.readString();
        operatorId = in.readString();
        operatorName = in.readString();
        orderId = in.readString();
        orderStatus = in.readString();
        orderType = in.readString();
        payStatus = in.readString();
        payTime = in.readString();
        payType = in.readString();
        qrCode = in.readString();
        receiptAmount = in.readString();
        subPayType = in.readString();
        thirdOrderId = in.readString();
        thirdTradeNo = in.readString();
        totalAmount = in.readString();
        tradeNo = in.readString();
        discountAmount = in.readString();
        voucherId = in.readString();
        voucherName = in.readString();
        inputPayPwdNum = in.readString();
        activityQrCode = in.readString();
        goodsAmount = in.readString();
        gooodsAmount=in.readString();

    }

    public static final Creator<Response_Pay> CREATOR = new Creator<Response_Pay>() {
        @Override
        public Response_Pay createFromParcel(Parcel in) {
            return new Response_Pay(in);
        }

        @Override
        public Response_Pay[] newArray(int size) {
            return new Response_Pay[size];
        }
    };

    public String getMemberCardAmount() {
        return memberCardAmount!=null?memberCardAmount:"0.00";
    }

    public String getMemberCardId() {
        return memberCardId;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public String getOrderId() {
        return orderId;
    }

    public String getOrderStatus() {
        return orderStatus!=null?orderStatus:"";
    }

    public String getOrderType() {
        return orderType!=null?orderType:"";
    }

    public String getPayStatus() {
        return payStatus;
    }

    public String getPayTime() {
        return payTime;
    }

    public String getPayType() {
        return payType;
    }

    public String getQrCode() {
        return qrCode;
    }

    public String getReceiptAmount() {
        return receiptAmount!=null?receiptAmount:"0.00";
    }

    public String getSubPayType() {
        return subPayType;
    }

    public String getThirdOrderId() {
        return thirdOrderId;
    }

    public String getThirdTradeNo() {
        return thirdTradeNo;
    }

    public String getTotalAmount() {
        return totalAmount!=null?totalAmount:"";
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public String getVoucherId() {
        return voucherId;
    }

    public String getVoucherName() {
        return voucherName;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getInputPayPwdNum() {
        return inputPayPwdNum;
    }

    public void setInputPayPwdNum(String inputPayPwdNum) {
        this.inputPayPwdNum = inputPayPwdNum;
    }

    public String getActivityQrCode() {
        return activityQrCode;
    }

    public String getGoodsAmount() {
        return goodsAmount!=null?goodsAmount:"0.00";
    }

    public void setGoodsAmount(String goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(memberCardAmount);
        dest.writeString(memberCardId);
        dest.writeString(operatorId);
        dest.writeString(operatorName);
        dest.writeString(orderId);
        dest.writeString(orderStatus);
        dest.writeString(orderType);
        dest.writeString(payStatus);
        dest.writeString(payTime);
        dest.writeString(payType);
        dest.writeString(qrCode);
        dest.writeString(receiptAmount);
        dest.writeString(subPayType);
        dest.writeString(thirdOrderId);
        dest.writeString(thirdTradeNo);
        dest.writeString(totalAmount);
        dest.writeString(tradeNo);
        dest.writeString(discountAmount);
        dest.writeString(voucherId);
        dest.writeString(voucherName);
        dest.writeString(inputPayPwdNum);
        dest.writeString(activityQrCode);
        dest.writeString(goodsAmount);
        dest.writeString(gooodsAmount);
    }
}
